package com.storage.system.mapper;

import com.storage.system.domain.StorageShopOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺销售订单 数据层
 *
 * @author ruoyi
 * @date 2019-08-26
 */
public interface StorageShopOrderMapper {
    /**
     * 查询店铺销售订单信息
     *
     * @param id 店铺销售订单ID
     * @return 店铺销售订单信息
     */
    public StorageShopOrder selectStorageShopOrderById(Long id);

    /**
     * 查询店铺销售订单列表
     *
     * @param storageShopOrder 店铺销售订单信息
     * @return 店铺销售订单集合
     */
    public List<StorageShopOrder> selectStorageShopOrderList(StorageShopOrder storageShopOrder);

    /**
     * 新增店铺销售订单
     *
     * @param storageShopOrder 店铺销售订单信息
     * @return 结果
     */
    public int insertStorageShopOrder(StorageShopOrder storageShopOrder);

    /**
     * 修改店铺销售订单
     *
     * @param storageShopOrder 店铺销售订单信息
     * @return 结果
     */
    public int updateStorageShopOrder(StorageShopOrder storageShopOrder);

    /**
     * 删除店铺销售订单
     *
     * @param id 店铺销售订单ID
     * @return 结果
     */
    public int deleteStorageShopOrderById(Long id);

    /**
     * 批量删除店铺销售订单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteStorageShopOrderByIds(String[] ids);

    /**
     * 查询分页数据
     *
     * @param storageShopOrder
     * @param start
     * @param pageSize
     * @return
     */
    List<StorageShopOrder> queryPageList(@Param("order") StorageShopOrder storageShopOrder, @Param("start") Integer start, @Param("pageSize") Integer pageSize);

    /**
     * 查询分页count
     *
     * @param storageShopOrder
     * @return
     */
    Long queryPageCount(StorageShopOrder storageShopOrder);
}